﻿using System;
using MessagePack.Formatters;
using MessagePack.Internal;

namespace MessagePack.Resolvers
{
	// Token: 0x02000120 RID: 288
	public class NativeDateTimeResolver : IFormatterResolver
	{
		// Token: 0x06000452 RID: 1106 RVA: 0x00013705 File Offset: 0x00011B05
		private NativeDateTimeResolver()
		{
		}

		// Token: 0x06000453 RID: 1107 RVA: 0x0001370D File Offset: 0x00011B0D
		public IMessagePackFormatter<T> GetFormatter<T>()
		{
			return NativeDateTimeResolver.FormatterCache<T>.formatter;
		}

		// Token: 0x040001E7 RID: 487
		public static readonly IFormatterResolver Instance = new NativeDateTimeResolver();

		// Token: 0x02000121 RID: 289
		private static class FormatterCache<T>
		{
			// Token: 0x040001E8 RID: 488
			public static readonly IMessagePackFormatter<T> formatter = (IMessagePackFormatter<T>)NativeDateTimeResolverGetFormatterHelper.GetFormatter(typeof(T));
		}
	}
}
